<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>

<script type="text/javascript">
	const arr = [100,2,34,6,7,9];
	// 剩余的都放入d
	let [a,b,c,...d] = arr;
	console.log(a,b,c,d);
	
	const demo = (x,y,...z) => {
		console.log(x,y,z);
	}
	
	demo(1,2,4,5,6,67,7,8,8);
	
	
</script>
